<div style="clear:both;">
    <?php $this->widget('zii.widgets.CMenu', array(
    'items' => array(
        array('label' => 'Location info', 'url' => array('/customerportal/Locations/update', 'id' => $model->id)),
        array('label' => 'Contacts', 'url' => array('/customerportal/Locationcontacts', 'id' => $model->id), 'active' => Yii::app()->controller->id == 'locationcontacts'),
        //array('label'=>'Equipment','url'=>array('/customerportal/Equipment','locno'=>$model->locno),'active'=>Yii::app()->controller->id=='equipment'),
        //array('label'=>'Invoices','url'=>array('/customerportal/Invoices','id'=>$model->id),'active'=>Yii::app()->controller->id=='invoices'),
        array('label' => 'Dispatch Overview', 'url' => array('/customerportal/Dispatches', 'custno' => $model->custno, 'locno' => $model->locno), 'active' => Yii::app()->controller->id == 'dispatches'),
        array('label' => 'Dispatch List', 'url' => array('/customerportal/Dispatchdetails', 'custno' => $model->custno, 'locno' => $model->locno), 'active' => Yii::app()->controller->id == 'dispatchdetails'),
        //   array('label'=>'Job','url'=>array('/customerportal/jobs','locno'=>$model->locno),'active'=>Yii::app()->controller->id=='jobs'),
    ),
    'id' => 'tab-menu',
    'htmlOptions' => array(
        'class' => 'tabs tabs-with-summary',
    ),
    'submenuHtmlOptions' => array('class' => 'tabs tabs-with-summary'),
));?>
</div>